<?php

  require_once 'JooS/Browser/Abstract.php';

  class JooS_Browser_Opera extends JooS_Browser_Abstract{
    protected function getName() {
      return "Opera";
    }

    protected function getVersion() {
      $ver = null;

      $ua = $this->getUA();
      if (preg_match_all("/Opera[\s\/](\d+\.\d+)/", $ua, $match)) {
        $ver = $match[1][0];
        if (version_compare('8.54', $ver, '>'))
          $this->throwException($ver);
      }
      return $ver;
    }
  }

?>